Elementor\Modules\Ai\Module D

Total Complexity 191
Dependencies 11
Dependents 1
Total lines 1,381
Lines of code 1,054
Logical lines of code 493
Comment lines 16
Methods 52
Properties 0

Methods 52

Method Rating Maintainability Complexity Lines of code
__construct()
A
33 8 111
ajax_ai_generate_layout()
A
41 9 60
set_product_images_ajax()
A
48 11 29
get_product_images_ajax()
A
47 10 35
ajax_ai_get_image_to_image_mask()
A
49 7 32
get_current_screen()
A
57 8 16
prepare_generate_layout_context()
S
42 4 58
ajax_ai_get_image_to_image_mask_cleanup()
S
50 6 28
ajax_ai_upload_image()
S
54 6 20
ajax_ai_get_image_to_image()
S
51 5 26
ajax_ai_get_product_image_unification()
S
51 5 26
ajax_ai_get_image_to_image_upscale()
S
52 5 25
ajax_ai_get_image_to_image_replace_background()
S
52 5 25
ajax_ai_get_custom_css()
S
52 5 25
ajax_ai_toggle_favorite_history_item()
S
58 5 15
ajax_ai_delete_history_item()
S
58 5 15
verify_permissions()
S
59 5 15
ajax_ai_get_edit_text()
S
53 4 22
ajax_ai_get_image_to_image_remove_background()
S
54 4 21
ajax_ai_get_custom_code()
S
54 4 21
ajax_ai_get_history()
S
55 4 18
ajax_ai_get_image_to_image_outpainting()
S
53 3 24
ajax_ai_get_layout_prompt_enhancer()
S
54 3 21
ajax_ai_get_completion_text()
S
55 3 19
ajax_ai_get_featured_image()
S
55 3 19
ajax_ai_get_text_to_image()
S
55 3 19
ajax_ai_get_image_prompt_enhancer()
S
56 3 18
ajax_ai_get_excerpt()
S
56 3 18
enqueue_main_script()
S
50 2 33
upload_image()
S
58 3 15
update_product_gallery()
S
62 3 12
ajax_ai_set_status_feedback()
S
63 3 11
remove_temporary_containers()
S
62 3 11
ajax_ai_get_user_information()
S
56 2 19
verify_upload_permissions()
S
68 3 7
enqueue_ai_media_library_upload_screen()
S
68 3 7
get_attachment_id_by_url()
S
58 2 15
add_wc_scripts()
S
51 1 30
enqueue_ai_media_library()
S
55 1 22
enqueue_layout_script()
S
57 1 20
throw_on_error()
S
67 2 8
get_request_ids()
S
71 2 6
get_request_context()
S
71 2 6
ajax_ai_get_remote_config()
S
69 2 7
enqueue_ai_single_product_page_scripts()
S
72 2 6
enqueue_ai_products_page_scripts()
S
72 2 6
ajax_ai_set_get_started()
S
69 1 7
get_ai_app()
S
80 1 3
ajax_ai_get_remote_frontend_config()
S
70 1 6
get_ai_connect_url()
S
65 1 9
add_products_bulk_action()
S
75 1 4
get_name()
S
82 1 3